# Contributor: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
maintainer="Hugo Osvaldo Barrera <hugo@whynothugo.nl>"
pkgname=snooze
pkgver=0.5
pkgrel=0
pkgdesc="Run a command at a particular time"
url="https://github.com/leahneukirchen/snooze"
arch="all"
license="Public-Domain"
subpackages="$pkgname-doc"
source="snooze-$pkgver.tar.gz::https://github.com/leahneukirchen/snooze/archive/refs/tags/v$pkgver.tar.gz"

build() {
	make all
}

check() {
	./snooze -v -H* -M* -S* echo test
}

package() {
	make install DESTDIR="$pkgdir" PREFIX=/usr
}

sha512sums="
889502e3bc1265fbac99e3af5f1023729b52299e358c87783c339f1cf3004e8c8ba26c7f8ff877c047d79c7c98c95e5ba1b3d5e833c8222d05a55d09804e7fb1  snooze-0.5.tar.gz
"
